@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&display=swap');
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
nav ul li a,
.language-switch {
    font-family: 'Cairo', 'Inter', Arial, sans-serif;
    font-size: 1.08rem;
    line-height: 1.8;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1.05rem;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ARABIC / RTL OVERRIDES ===== */
html, body, h1, h2, h3, h4 {
    direction: rtl;
}

.carousel-banner h2,
.carousel-banner p {
    text-align: right !important;
}

/* ===================================== */

/* Subtle fade-in on load for hero */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal fade-in */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar – fuller & more substantial version */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.35s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    background-color: rgba(255,255,255,0.985);
}

/* Thin colored accent line under navbar */
header::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: linear-gradient(to right, #007bff, #dc3545, #28a745);
    opacity: 0.6;
    pointer-events: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    min-height: 80px;
}

.logo-wrapper {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 240px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav ul li a {
    text-decoration: none;
    color: #222;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    position: relative;
    transition: color 0.25s ease;
    padding-bottom: 4px;
}

nav ul li a:hover,
nav ul li a.active {
    color: #dc3545;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #dc3545;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.language-switch {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.language-switch:hover {
    background: rgba(40, 167, 69, 0.08);
    color: #28a745;
}

/* Carousel – full-width hero section */
.carousel-section {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #eee;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    display: flex;
    flex-direction: row;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Keep carousels working normally in LTR */
.carousel-section,
.carousel,
.client-carousel-container,
.client-carousel-track {
    direction: ltr !important;
}

/* Arabic: banner on right side with right-to-left gradient */
.carousel-banner {
    position: absolute;
    top: 0;
    left: auto !important;
    right: 0% !important;
    width: 38%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 20%, rgba(0,0,0,0.75) 100%) !important;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 15% 0 5%;
    z-index: 5;
    pointer-events: none;
    text-align: right;
}

/* Inner text container – shifts text further right */
.carousel-banner-inner {
    position: relative;
    right: -20%;
    width: 120%;
    text-align: right;
}

.carousel-banner h2 {
    font-size: clamp(22px, 4vw, 38px);
    margin-bottom: 10px;
    text-align: right;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

.carousel-banner p {
    font-size: clamp(15px, 2.2vw, 18px);
    margin-bottom: 18px;
    opacity: 0.95;
    text-align: right;
}

.carousel-banner .cta-button {
    pointer-events: auto;
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 12px 26px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(15px, 2vw, 17px);
    transition: background 0.3s ease, transform 0.2s ease;
    align-self: flex-end;
}

.carousel-banner .cta-button:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.carousel-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    z-index: 10;
    direction: rtl;
}

.dot {
    width: 13px;
    height: 13px;
    background: rgba(221, 51, 51, 0.55);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: rgb(255, 0, 0);
    transform: scale(1.35);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s ease;
}

.carousel-arrow:hover {
    background: rgba(0,0,0,0.65);
}

.prev { left: 20px; }
.next { right: 20px; }

/* CLIENT CAROUSEL */
.client-carousel-container {
    overflow: hidden;
    width: 100%;
    background-color: #fff;
    padding: 2rem 0;
    position: relative;
}

.client-carousel-track {
    display: flex;
    animation: clientScroll 60s linear infinite;
    width: max-content;
    will-change: transform;
}

.client-carousel-item {
    flex: 0 0 180px;
    padding: 1rem;
    transition: filter 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.client-carousel-item:hover {
    filter: grayscale(0%);
}

.client-carousel-item img {
    max-width: 160px;
    max-height: 100px;
    object-fit: contain;
}

.client-carousel-container:hover .client-carousel-track {
    animation-play-state: paused;
}

@keyframes clientScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

/* CONTENT SECTIONS */
.wide-section-overview {
    padding: 1rem 2rem;
    text-align: center;
    background-color: #ffffff;
    width: 100%;
    max-width: none;
    margin: 0 auto 4rem auto;
    position: relative;
    z-index: 1;
}

.wide-section-overview h2 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: #0D2B45;
}

.wide-section-overview p {
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

.wide-section {
    padding: 3.5rem 2rem;
    text-align: center;
    background-color: #ffffff;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.wide-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: #0D2B45;
}

.wide-section p {
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

.overview p { max-width: 1000px; }

/* Sections padding & headings */
section {
    padding: 80px 0;
}
h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 55px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

h2.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Updated: Products Section – 6 cards in 2 rows of 3 */
.products {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border: 4px solid rgba(220, 53, 69, 0.18);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card-content {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: auto;
}

.product-card-content .product-trigger {
    margin-top: auto;
}

.product-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #d71818;
}

.product-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    flex: 1;
}

/* Updated product card for specific categories */
.product-card-category {
    background: white;
    border: 4px solid rgba(220, 53, 69, 0.18);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.product-card-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-card-category img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card-category:hover img {
    transform: scale(1.05);
}

.product-card-category-content {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-category h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #d71818;
}

.product-card-category p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Certifications */
.certifications {
    background-color: #fff;
    padding: 80px 0;
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
    justify-items: center;
}

.cert {
    background: #f9f9f9;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 260px;
    padding: 25px;
}

.cert:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.cert img {
    width: 200px;
    height: auto;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.cert p {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    color: #043194;
}

/* Insights */
.insights {
    background-color: #f9f9f9;
}
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
}
.insight {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.insight:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.insight img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.insight-content {
    padding: 22px;
}
.insight a {
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.insight a:hover {
    color: #c82333;
}

/* Services */
.services {
    padding: 100px 0;
    background: #f8f8f8;
}

.services h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 3rem;
    color: #222;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 50px 35px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.service:hover {
    transform: translateY(-8px);
}

.service::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.35)
    );
    z-index: 1;
}

.service * {
    position: relative;
    z-index: 2;
}

.service i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ff3b1f;
}

.service h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.service p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.95;
}

/* Footer */
footer {
    background-color: #000338;
    color: #ddd;
    padding: 60px 0 40px;
    text-align: center;
}
footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}
footer a:hover {
    color: #d71818;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    flex: 0 0 240px;
    padding-left: 5px;
}

.footer-small-logo {
    height: 80px;
    width: auto;
}

.footer-info {
    text-align: center;
    flex: 1;
    min-width: 250px;
}

.footer-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.footer-right-image img {
    height: 150px;
    width: auto;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    opacity: 0.85;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

.footer-right-image img:hover {
    opacity: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.footer-links a {
    white-space: nowrap;
    padding: 0 12px;
    border-right: 1px solid #aaa;
}

.footer-links a:last-child {
    border-right: none;
}

.footer-links a:hover {
    color: #d71818;
}

/* Mission Cards */
.mission-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 4px solid rgba(220, 53, 69, 0.18);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    height: 300px;
}

.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.mission-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.mission-card:hover .mission-card-img {
    transform: scale(1.05);
}

.mission-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: white;
}

.mission-card-content h3 {
    color: #ff4d4d;
    margin-bottom: 0.5rem;
}

.mission-card-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #eee;
}

/* About Hero */
.about-hero {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    position: relative;
}

.about-hero-img {
    width: 100%;
    height: auto;
    display: block;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    color: white;
    line-height: normal;
}

.about-hero-overlay h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.about-hero-overlay p {
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    opacity: 0.9;
    max-width: 600px;
}

/* Mission / Vision layout */
.mission-vision-layout {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.mission-vision-card {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border: 4px solid rgba(220, 53, 69, 0.18);
    text-align: left;
}

.mission-vision-card h2 {
    text-align: left;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #0D2B45;
}

.mission-vision-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

@media (max-width: 768px) {
    .mission-vision-layout {
        flex-direction: column;
    }
}

/* Category Page Layout */
.category-hero-section {
    padding: 40px 0 60px;
    background: #f9f9f9;
}

.category-header {
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #dc3545;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #a00;
}

.category-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #0D2B45;
    margin-bottom: 0;
}

.category-body {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.category-left {
    flex: 1;
}

.category-cover-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.category-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.category-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.category-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.category-gallery img:hover {
    transform: scale(1.03);
}

.category-description {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #444;
}

@media (max-width: 768px) {
    .category-body {
        flex-direction: column;
    }

    .category-cover-img {
        height: 250px;
        width: 120vw;
        margin-left: calc(-50vw + 50%);
        border-radius: 0;
    }

    .category-gallery img {
        height: 100px;
    }
}

/* Product card image hover swap */
.product-card-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.product-card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.4s ease;
}

.product-card-img-wrapper .img-hover {
    opacity: 0;
}

.product-card-category:hover .img-hover {
    opacity: 1;
}

.product-card-category:hover .img-primary {
    opacity: 0;
}

/* Read more link */
.read-more {
    display: block;
    margin-top: 8px;
    color: #1a0dab;
    text-decoration: underline;
    font-size: 0.85rem;
}

/* Clients Grid */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
    justify-items: center;
}

.client-item {
    text-align: center;
    transition: transform 0.35s ease;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    width: 100%;
    max-width: 220px;
}

.client-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.client-item img {
    max-width: 160px;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 1.2rem;
}

.client-item p {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    transition: color 0.35s ease;
}

.client-item:hover p {
    color: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: 1fr;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    .reveal, .reveal.active { opacity: 1; transform: none; }
}

/* Mobile Hamburger & Sidebar */
@media (max-width: 768px) {
    .hamburger { display: block; }
    nav ul { display: none; }
    .sidebar { display: block; }
    .overlay { display: block; }
}

@media (min-width: 769px) {
    .hamburger, .sidebar, .overlay { display: none; }
}

/* Mobile Carousel Adjustments */
@media (max-width: 768px) {
    .carousel-arrow {
        display: none !important;
    }

    .carousel-banner {
        width: 75% !important;
        padding: 8% 12% 10% 8% !important;
    }

    .carousel-banner h2 {
        font-size: clamp(19px, 3.8vw, 30px) !important;
    }

    .carousel-banner p {
        font-size: clamp(14px, 1.9vw, 16.5px) !important;
        max-height: 160px !important;
        -webkit-line-clamp: 8 !important;
    }

    .footer {
        margin-top: 30px !important;
        padding: 40px 20px 30px !important;
    }
}

@media (max-width: 768px) {
    .footer {
        margin-top: 40px !important;
        padding: 35px 15px 25px !important;
        font-size: 10px;
        line-height: 1.6;
    }

    .footer p {
        font-size: 10px;
        margin-bottom: 10px;
    }

    .footer a {
        font-size: 10px;
    }
}

/* ===== Product Modal (full-screen) ===== */
.product-modal {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.82);
    display: none;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 36px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.product-modal.open {
    display: flex;
}

.product-modal .modal-card {
    width: 100%;
    max-width: 1180px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 1.25rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
    padding: 26px;
    position: relative;
    direction: rtl;
}

/* Left (in RTL: right): Title + Description */
.product-modal .modal-info {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-modal .product-title {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #0D2B45;
    margin: 0 0 0.6rem 0;
    align-self: flex-start;
}

.product-modal .product-desc {
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 0.4rem;
}

/* Right (in RTL: left): Carousel area */
.product-modal .modal-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Carousel viewport */
.carousel-viewport {
    width: 100%;
    height: 360px;
    background: #f7f7f7;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-viewport img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 300ms ease;
}

/* Thumbnails + Inquiry row under carousel */
.carousel-controls {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
}

/* Thumbnails group */
.carousel-thumbs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.carousel-thumbs img {
    width: 72px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: opacity 150ms ease, transform 120ms ease, border-color 120ms ease;
}

.carousel-thumbs img.active {
    opacity: 1;
    transform: translateY(-2px);
    border-color: #dc3545;
}

/* Inquiry button */
.inquiry-btn {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Close button */
.modal-close {
    position: absolute;
    right: 22px;
    top: 22px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 10001;
}

/* Carousel arrows (modal) */
.modal-carousel .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    border: none;
    z-index: 5;
    transition: background 0.18s ease, transform 0.12s ease;
}
.modal-carousel .carousel-arrow:hover {
    background: rgba(0,0,0,0.65);
    transform: translateY(-50%) scale(1.03);
}

.modal-carousel .carousel-arrow.left { left: 10px; }
.modal-carousel .carousel-arrow.right { right: 10px; }

/* Responsive modal */
@media (max-width: 980px) {
    .product-modal .modal-card {
        grid-template-columns: 1fr;
        padding: 18px;
    }
    .carousel-viewport { height: 300px; }
    .carousel-thumbs img { width: 60px; height: 48px; }
}